package com.minimalist.basic.config.bucket;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import java.time.Duration;

/**
 * @author 11987
 */
@Data
@Configuration
public class IpRateLimitConfig {
    @Value("${ip-rate-limit.capacity}")
    private int capacity;
    @Value("${ip-rate-limit.refill-interval}")
    private int refillInterval;
    @Value("${ip-rate-limit.duration}")
    private Duration duration;
}
